package psn.zjk.cacheTest;

import java.util.HashMap;

/**
 * @USER white
 * @DATETIME 2020/10/24 10:28
 */
public class RedisCache extends HashMap<String,Object> {
    private String x;

    {
        synchronized(this){
            System.out.println(211112);
        }
    }
    private synchronized void x(){
        System.out.println(22);
    }

    private void zz(){
        synchronized(RedisCache.class){
            System.out.println(4422);
        }
    }
}
